import { post } from '@/utils/request'

// 会员资料设置

// 获取会员字段列表
export const getPageList = p => post(`/service-member/b/memberInfoField/v1/pageList`, p)
// 新增会员自定义字段
export const addMemberField = p => post(`/service-member/b/memberInfoField/v1/add`, p)
// 修改会员自定义字段
export const modifyMemberField = p => post(`/service-member/b/memberInfoField/v1/modify`, p)
// 删除会员自定义字段，固有子弹不能删除
export const delMemberField = p => post(`/service-member/b/memberInfoField/v1/del/${p}`, p, 'get')
// 修改是否必填,是否可修改,是否显示
export const updateMemberFieldStatus = p => post(`/service-member/b/memberInfoField/v1/modify/switch`, p)
// 会员字段信息查看
export const getMemberFieldInfo = p => post(`/service-member/b/memberInfoField/v1/view/${p}`, {}, 'get')
